<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>
        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">人员姓名</td><td id="name" class="tv"></td><td class="tt">员工编号</td><td id="number" class="tv"></td></tr>
                <tr><td class="tt">身份证号</td><td id="idcard" class="tv"></td><td class="tt">联系电话</td><td id="tel" class="tv"></td></tr>
                <tr><td class="tt">性别</td><td id="sex" class="tv"></td><td class="tt">年龄</td><td id="age" class="tv"></td></tr>
                <tr><td class="tt">学历</td><td id="xueli" class="tv"></td><td class="tt">专业</td><td id="major" class="tv"></td></tr>
                <tr><td class="tt">所在部门</td><td id="deptid_name" class="tv"></td><td class="tt">岗位</td><td id="gangid_name" class="tv"></td></tr>
                <tr><td class="tt">人员性质</td><td id="nature" class="tv"></td><td class="tt">入职日期</td><td id="intodt" class="tv"></td></tr>
                <tr><td class="tt">人员状态</td><td class="tv" id="state"></td><td class="tt">离职日期</td><td id="outdt" class="tv"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div class="table-box tablenes">
            <div class="title">劳动合同</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">合同开始日期</td><td id="laokaidt" class="tv"></td><td class="tt">合同结束日期</td><td id="laojiedt" class="tv"></td></tr>
                <tr><td class="tt">劳动合同说明</td><td class="tv" id="laoshuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div class="table-box tablenes">
            <div class="title">社保信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">社保状态</td><td id="social" class="tv"></td><td class="tt">参保地</td><td id="socarea" class="tv"></td></tr>
                <tr><td class="tt">参保开始月份</td><td id="socstartdt" class="tv"></td><td class="tt">参保结束月份</td><td id="socenddt" class="tv"></td></tr>
                <tr><td class="tt">社保卡号</td><td id="shenum" class="tv"></td><td class="tt">公积金号</td><td id="gongnum" class="tv"></td></tr>
                <tr><td class="tt">社保说明</td><td class="tv" id="socshuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div class="table-box tablenes">
            <div class="title">账户信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">账户名</td><td id="bankname" class="tv"></td><td class="tt">账号</td><td id="banknum" class="tv"></td></tr>
                <tr><td class="tt">开户行</td><td class="tv" id="bankkai" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

<!--        <div class="table-box tablenes">-->
<!--            <script type="text/html" id="toolbarDemo">证书使用记录</script>-->
<!--            <div class="tableShow">-->
<!--                <table id="datalist" lay-filter="datalist"></table>-->
<!--            </div>-->
<!--        </div>-->

        <div><?php include "../public/upinfo_show.php";?></div>
        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>

        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_person_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;

                $("#name").text(data.name);
                $("#number").text(data.number);
                $("#idcard").text(data.idcard);
                $("#tel").text(data.tel);
                $("#sex").text(data.sex);
                $("#age").text(data.age);
                $("#xueli").text(data.xueli);
                $("#major").text(data.major);
                $("#deptid_name").text(data.deptid_name);
                $("#gangid_name").text(data.gangid_name);
                $("#nature").text(data.nature);
                $("#intodt").text(data.intodt);
                $("#state").text(data.state);
                $("#outdt").text(data.outdt);
                $("#explain").text(data.explain);

                $("#laokaidt").text(data.laokaidt);
                $("#laojiedt").text(data.laojiedt);
                $("#laoshuo").text(data.laoshuo);

                $("#social").text(data.social);
                $("#socarea").text(data.socarea);
                $("#socstartdt").text(data.socstartdt);
                $("#socenddt").text(data.socenddt);
                $("#shenum").text(data.shenum);
                $("#gongnum").text(data.gongnum);
                $("#socshuo").text(data.socshuo);

                $("#bankname").text(data.bankname);
                $("#banknum").text(data.banknum);
                $("#bankkai").text(data.bankkai);

                // var mytableList = table.render({
                //     elem: "#datalist",data:res.data.use_list, toolbar: '#toolbarDemo', page: false
                //     ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                //     ,defaultToolbar: TabInitShow.defaultToolbar,filter: TabInitShow.filter ,text: TabInitShow.text
                //     ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                //     , cols: [[
                //         {type:'numbers',title:'序号',fixed:'left'}
                //         ,{field:'enginid_name',title:'项目名称',templet: function(d){
                //                 return '<span class="colorlan" onclick="openPage(\'../engin/show.php?id='+d.enginid+'\')">'+d.enginid_name+'</span>';
                //             }}
                //         ,{field: 'engin_state', title: '项目状态'}
                //         ,{field:'name',title:'证书名称',templet: function(d){
                //                 return '<span class="colorlan" onclick="openPage(\'../cert/show.php?id='+d.certid+'\')">'+d.name+'</span>';
                //             }}
                //         ,{field: 'number', title: '证书编号'}
                //         ,{field: 'major_name', title: '证书专业'}
                //         ,{field: 'place', title: '岗位'}
                //         ,{field: 'statueuse', title: '使用情况'}
                //         ,{field: 'issuo', title: '是否锁证'}
                //         ,{field: 'startdt', title: '使用开始时间'}
                //         ,{field: 'yudt', title: '预计结束时间'}
                //         ,{field: 'enddt', title: '使用结束时间'}
                //     ]]
                //     , done: function (res) {
                //         soulTable.render(this);
                //     }
                // });


                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('person', param_id);
        showpage_dropopt();
    });



</script>
</body>
</html>




